<template>
	<view class="box">
		<view class="wrap" v-for="(item,index) in lists" :key="item.id" >
			<view class="tit">
				{{item.pay_type}}
			</view>
			<view class="item">
				<text class="name">退款时间</text>
				<text class="time">{{item.create_time}}</text>
			</view>
		<!-- 	<view class="item">
				<text class="name">流水单号</text>
				<text class="time">{{item.refund_sn}}</text>
			</view> -->
			<view class="item">
				<text class="name">金额</text>
				<text class="time">￥{{item.price}}</text>
			</view>
			<view class="item">
				<text class="name">状态</text>
				<text class="time">已退还</text>
			</view>
		</view> 
	</view>
</template>

<script>
	import {refundPrice}from "../../api/order.js"
	export default {
		data() {
			return {
			id:"",
			lists:[]
			
				
			}
		},
		onLoad(e) {
		this.id=e.id
		this.getinfo()
		},
		methods: {
			getinfo(){
				refundPrice({
					id:this.id
				}).then(res=>{
					this.lists=res.data
				})
			}
	},
	}
</script>

<style lang="scss">
	.box{
		width: 750rpx;
		height: 100vh;
	}
	.wrap{
		width: 690rpx;
		padding-bottom: 30rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0 auto;
		margin-top: 24rpx;
		
	}
	.tit{
		padding-top: 32rpx;
		margin-left: 24rpx;
		font-weight: 700;
		font-size: 32rpx;
		color: #333333;
	}
	.item{
		display: flex;
		align-items: center;
		margin-left: 24rpx;
		justify-content: space-between;
		margin-right: 40rpx;
		margin-top: 24rpx;
		.name{
			font-weight: 400;
			font-size: 28rpx;
			color: #A7A4AD;
		}
		.time{
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
		}
	}
	.tip{
		text-align: right;
		
		font-weight: 400;
		font-size: 28rpx;
		color: #66B250;
		line-height: 28rpx;
		text-align: right;
		font-style: normal;
		margin-right: 40rpx;
		margin-top: 20rpx;
	}
</style>